
#include "NetChatHandler.h"
#include "NetMsgHandler.h"
#include "CreatureManager.h"



fint32				NetSendChatMsgHandler( GamePlayer* player , netMsgHead* head )
{
    CHECKMSG( SEND_RECV_MSG_CHAT_MSG )

	msg->type = _MSG_RECV_CHAT_MSG;

	msg->Name[ MAX_NAME - 1 ] = '\0';
	msg->Chat[ MAX_CHAT_MSG - 1 ] = '\0';

	gCreatureManager->AddMsgToAll( msg );
	gCreatureManager->SendMsgToAll();

	return GAME_NO_ERROR;
}

